//
//  BuaatVolunteerServerSDK.h
//  BuaatVolunteerServerSDK
//
//  Created by mac on 15/6/26.
//  Copyright (c) 2015年 mac. All rights reserved.
//

#import <Foundation/Foundation.h>
@interface BuaatVolunteerServerSDK : NSObject
+(BuaatVolunteerServerSDK *)sharedInstance;

-(void)setClientId:(NSString *)clientId appKey:(NSString *)appKey;

//修改密码
-(void)requestVolunteerUpdatePwdWithVolunteerCode:(NSString *)volunteerCode
                                    oldPassword:(NSString *)oldPasswordAfterMD5
                                    newPassword:(NSString *)newPasswordAfterMD5
                                        success:(void (^)(NSHTTPURLResponse *response, id responseObject))success
                                        failure:(void (^)(NSHTTPURLResponse *response, NSError *error))failure;
//通讯录
-(void)requestVolunteerFindVolunteerWithGroupCode:(NSString *)groupCode
                                   volunteerCode:(NSString *)volunteerCode
                                        success:(void (^)(NSHTTPURLResponse *response, id responseObject))success
                                        failure:(void (^)(NSHTTPURLResponse *response, NSError *error))failure;
//志愿者登陆
-(void)requestAuthVolunteerWithVolunteerMobile:(NSString *)volunteerMobile
                                 volunteerPwd:(NSString *)volunteerPwdAfterMD5
                                     success:(void (^)(NSHTTPURLResponse *response, id responseObject))success
                                     failure:(void (^)(NSHTTPURLResponse *response, NSError *error))failure;
//查询保单信息
-(void)requestVolunteerGetVolunteerInsuranceWithVolunteerCode:(NSString *)volunteerCode
                                                   success:(void (^)(NSHTTPURLResponse *response, id responseObject))success
                                                   failure:(void (^)(NSHTTPURLResponse *response, NSError *error))failure;
//补登
-(void)requestActivityRecord4UnregWithActiveName:(NSString *)activeName
                                 activeStartTime:(NSString *)activeStartTime
                                   activeEndTime:(NSString *)activeEndTime
                                        location:(NSString *)location
                                       groupCode:(NSString *)groupCode
                                    volunteerCode:(NSString *)volunteerCode
                                      activityCode:(NSString *)activityCode
                                         success:(void (^)(NSHTTPURLResponse *response, id responseObject))success
                                         failure:(void (^)(NSHTTPURLResponse *response, NSError *error))failure;
//广告
-(void)requestAdvertEnquiryWithVolunteerCode:(NSString *)volunteerCode
                                     module:(NSString *)module
                                   location:(NSString *)location
                                    success:(void (^)(NSHTTPURLResponse *response, id responseObject))success
                                    failure:(void (^)(NSHTTPURLResponse *response, NSError *error))failure;
//扫描志愿者二维码
-(void)requestQrcodeVolunteerInfoWithVolunteerCode:(NSString *)volunteerCode
                                         success:(void (^)(NSHTTPURLResponse *response, id responseObject))success
                                         failure:(void (^)(NSHTTPURLResponse *response, NSError *error))failure;
//扫描组织二维码
-(void)requestQrcodeGroupInfoWithGroupCode:(NSString *)groupCode
                                   success:(void (^)(NSHTTPURLResponse *response, id responseObject))success
                                   failure:(void (^)(NSHTTPURLResponse *response, NSError *error))failure;
//扫描活动二维码
-(void)requestQrcodeActivityInfoWithActivityCode:(NSString *)activityCode
                                         success:(void (^)(NSHTTPURLResponse *response, id responseObject))success
                                         failure:(void (^)(NSHTTPURLResponse *response, NSError *error))failure;

//全部信息
-(void)requestVolunteerNoticeAllNewsWithSuccess:(void (^)(NSHTTPURLResponse *response, id responseObject))success
                                        failure:(void (^)(NSHTTPURLResponse *response, NSError *error))failure;
//系统通知
-(void)requestVolunteerSystemNoticeWithSuccess:(void (^)(NSHTTPURLResponse *response, id responseObject))success
                                       failure:(void (^)(NSHTTPURLResponse *response, NSError *error))failure;
//快讯播报
-(void)requestVolunteerNewsWithSuccess:(void (^)(NSHTTPURLResponse *response, id responseObject))success
                               failure:(void (^)(NSHTTPURLResponse *response, NSError *error))failure;
//我的信息
-(void)requestVolunteerGetVNoticesByGroupCodeWithGroupCode:(NSString *)groupCode
                                                   success:(void (^)(NSHTTPURLResponse *response, id responseObject))success
                                                   failure:(void (^)(NSHTTPURLResponse *response, NSError *error))failure;
//补登列表
-(void)requestActivityRecord4UnregListWithVolunteerCode:(NSString *)volunteerCode
                                               success:(void (^)(NSHTTPURLResponse *response, id responseObject))success
                                               failure:(void (^)(NSHTTPURLResponse *response, NSError *error))failure;
//志愿者注册
-(void)requestVolunteerRegisterWithGroupCode:(NSString *)groupCode
                                 loginMobile:(NSString *)loginMobile
                                 loginPasswd:(NSString *)loginPasswdAfterMD5
                                    userType:(NSString *)userType
                                    userName:(NSString *)userName
                                      gender:(NSString *)gender
                                    birthday:(NSString *)birthday
                             certificateType:(NSString *)certificateType
                               certificateNo:(NSString *)certificateNo
                                  birthPlace:(NSString *)birthPlace
                                    regPlace:(NSString *)regPlace
                                 nationality:(NSString *)nationality
                                    eduLevel:(NSString *)eduLevel
                             politicalStatus:(NSString *)politicalStatus
                                    cylcUnit:(NSString *)cylcUnit
                                    clycPost:(NSString *)clycPost
                                joinClycDate:(NSString *)joinClycDate
                                   partyUnit:(NSString *)partyUnit
                                joinPartyDate:(NSString *)joinPartyDate
                                   partyPost:(NSString *)partyPost
                           joinVolunteerDate:(NSString *)joinVolunteerDate
                             volunteerIssuse:(NSString *)volunteerIssuse
                       volunteerServiceHours:(NSString *)volunteerServiceHours
                              volunteerLevel:(NSString *)volunteerLevel
                                 volunteerNo:(NSString *)volunteerNo
                               volunteerFlag:(NSString *)volunteerFlag
                           severiceTerritory:(NSString *)severiceTerritory
                             serviceLocation:(NSString *)serviceLocation
                                guardianName:(NSString *)guardianName
                              guardianMobile:(NSString *)guardianMobile
                                     success:(void (^)(NSHTTPURLResponse *response, id responseObject))success
                                     failure:(void (^)(NSHTTPURLResponse *response, NSError *error))failure;
//忘记密码
-(void)requestVolunteerForgetVolunteerPwdWithLoginMobile:(NSString *)loginMobile
                                               last6IdNo:(NSString *)last6IdNo
                                                 success:(void (^)(NSHTTPURLResponse *response, id responseObject))success
                                                 failure:(void (^)(NSHTTPURLResponse *response, NSError *error))failure;
//检查版本
-(void)requestVersioniOSWithSuccess:(void (^)(NSHTTPURLResponse *response, id responseObject))success
                            failure:(void (^)(NSHTTPURLResponse *response, NSError *error))failure;

//RSA加密
- (NSString *)encryptStrWithPublicKey:(NSString *)str;
//RSA解密
- (NSString *)decryptStrWithPublicKey:(NSString *)str;

//获取城市json
-(void)requestRegionRegionWithSuccess:(void (^)(NSHTTPURLResponse *response, id responseObject))success
                              failure:(void (^)(NSHTTPURLResponse *response, NSError *error))failure;
//个人信息核实
-(void)requestVolunteerCheckinfoWithCertificateType:(NSString *)certificateType
                                      certificateNo:(NSString *)certificateNo
                                               name:(NSString *)name
                                             mobile:(NSString *)mobile
                                            success:(void (^)(NSHTTPURLResponse *response, id responseObject))success
                                            failure:(void (^)(NSHTTPURLResponse *response, NSError *error))failure;
//理赔信息录入
-(void)requestVolunteerClaimInsuranceWithInsuranceId:(NSString *)insuranceId
                                            recordId:(NSString *)recordId
                                          dangerDate:(NSString *)dangerDate
                                     bankAccountName:(NSString *)bankAccountName
                                         bankAccount:(NSString *)bankAccount
                                     bankAccountCity:(NSString *)bankAccountCity
                                            bankName:(NSString *)bankName
                                      bankBranchName:(NSString *)bankBranchName
                                   bankSubBranchName:(NSString *)bankSubBranchName
                                      contactAddress:(NSString *)contactAddress
                                           applyCost:(NSString *)applyCost
                                      medicalPayList:(NSArray *)medicalPayList
                                  identificationList:(NSArray *)identificationList
                                   medicalRecordList:(NSArray *)medicalRecordList
                                      inHospitalList:(NSArray *)inHospitalList
                                  medicalExpenseList:(NSArray *)medicalExpenseList
                                     checkReportList:(NSArray *)checkReportList
                                        accidentList:(NSArray *)accidentList
                                             success:(void (^)(NSHTTPURLResponse *response, id responseObject))success
                                             failure:(void (^)(NSHTTPURLResponse *response, NSError *error))failure;
//获取银行信息
-(void)requestInsuranceGetBankListWithSuccess:(void (^)(NSHTTPURLResponse *response, id responseObject))success
                                      failure:(void (^)(NSHTTPURLResponse *response, NSError *error))failure;
//获取理赔结果
-(void)requestInsuranceSearchClaimResultWithVolunteerCode:(NSString *)volunteerCode
                                             recordId:(NSString *)recordId
                                                  Success:(void (^)(NSHTTPURLResponse *response, id responseObject))success
                                                  failure:(void (^)(NSHTTPURLResponse *response, NSError *error))failure;

//活动签到/签退
-(void)requestActivitySignWithActivityCode:(NSString *)activityCode
                             volunteerCode:(NSString *)volunteerCode
                                  signType:(NSString *)signType
                                  signTime:(NSString *)signTime
                             signLongitude:(NSString *)signLongitude
                            signDimensions:(NSString *)signDimensions
                                   success:(void (^)(NSHTTPURLResponse *response, id responseObject))success
                                   failure:(void (^)(NSHTTPURLResponse *response, NSError *error))failure;
//活动报名
-(void)requestActivityRegisterWithActivityCode:(NSString *)activityCode
                                 volunteerCode:(NSString *)volunteerCode
                                     regStatus:(NSString *)regStatus
                                       regTime:(NSString *)regTime
                                       success:(void (^)(NSHTTPURLResponse *response, id responseObject))success
                                       failure:(void (^)(NSHTTPURLResponse *response, NSError *error))failure;
//更新理赔信息
-(void)requestInsuranceUpdateClaimWithClaimId:(NSString *)claimId
                                  insuranceId:(NSString *)insuranceId
                                     recordId:(NSString *)recordId
                                   dangerDate:(NSString *)dangerDate
                              bankAccountName:(NSString *)bankAccountName
                                  bankAccount:(NSString *)bankAccount
                              bankAccountCity:(NSString *)bankAccountCity
                                     bankName:(NSString *)bankName
                               bankBranchName:(NSString *)bankBranchName
                            bankSubBranchName:(NSString *)bankSubBranchName
                               contactAddress:(NSString *)contactAddress
                                    applyCost:(NSString *)applyCost
                               medicalPayList:(NSArray *)medicalPayList
                           identificationList:(NSArray *)identificationList
                            medicalRecordList:(NSArray *)medicalRecordList
                               inHospitalList:(NSArray *)inHospitalList
                           medicalExpenseList:(NSArray *)medicalExpenseList
                              checkReportList:(NSArray *)checkReportList
                                 accidentList:(NSArray *)accidentList
                                      success:(void (^)(NSHTTPURLResponse *response, id responseObject))success
                                      failure:(void (^)(NSHTTPURLResponse *response, NSError *error))failure;
@end
